﻿using System;

namespace Songhay.Mvvm.Views
{
    /// <summary>
    /// Defines members for a View loaded in a Composition.
    /// </summary>
    public interface IComposableView
    {
        /// <summary>
        /// Does the call to <c>NavigateFrom</c> when it is not called automatically by the Framework.
        /// </summary>
        /// <param name="targetUri">The target URI.</param>
        void DoNavigateFrom(Uri targetUri);

        /// <summary>
        /// Does the call to <c>NavigateTo</c> when it is not called automatically by the Framework.
        /// </summary>
        /// <param name="targetUri">The target URI.</param>
        void DoNavigateTo(Uri targetUri);
    }
}
